package com.sykj.wangkun.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sykj.bean.sys.SysMenu;
import com.sykj.util.reponse.CommonEnum;
import com.sykj.util.reponse.ResultBody;
import com.sykj.wangkun.bean.SySMenu;
import com.sykj.wangkun.mapper.SysMenuMapper;
import com.sykj.wangkun.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: SysMenuServiceImpl
 * @Package: com.sykj.wangkun.service.Impl
 * @program: BeautyClub
 * @description:
 * @author: Mr.Wang
 * @create: 2020-07-22 11:28
 **/
@Service
public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SySMenu> implements SysMenuService {
    @Autowired
    private SysMenuMapper  SysMenuMapper;
    /**
     * 功能描述:查询信息
     * @author 姓名
     * @date
     */
    @Override
    public List<SysMenu> querymenu() {
        List<SysMenu> querymenu = SysMenuMapper.querymenu();

        return querymenu;
    }

    /**
     * 功能描述:修改状态 假删除
     * @author 姓名
     * @date
     */
    @Override
    public ResultBody deletemenu(Integer menuId) {
        SysMenuMapper.deletemenu(menuId);
        return new ResultBody(CommonEnum.SUCCESS);
    }


}
